package com.ruoyi.books.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.books.mapper.BooksProjectFeaturesMapper;
import com.ruoyi.books.domain.BooksProjectFeatures;
import com.ruoyi.books.service.IBooksProjectFeaturesService;

/**
 * 非遗项目特色Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-31
 */
@Service
public class BooksProjectFeaturesServiceImpl implements IBooksProjectFeaturesService 
{
    @Autowired
    private BooksProjectFeaturesMapper booksProjectFeaturesMapper;

    /**
     * 查询非遗项目特色
     * 
     * @param projectFeaturesId 非遗项目特色主键
     * @return 非遗项目特色
     */
    @Override
    public BooksProjectFeatures selectBooksProjectFeaturesByProjectFeaturesId(Long projectFeaturesId)
    {
        return booksProjectFeaturesMapper.selectBooksProjectFeaturesByProjectFeaturesId(projectFeaturesId);
    }

    /**
     * 查询非遗项目特色列表
     * 
     * @param booksProjectFeatures 非遗项目特色
     * @return 非遗项目特色
     */
    @Override
    public List<BooksProjectFeatures> selectBooksProjectFeaturesList(BooksProjectFeatures booksProjectFeatures)
    {
        return booksProjectFeaturesMapper.selectBooksProjectFeaturesList(booksProjectFeatures);
    }

    /**
     * 新增非遗项目特色
     * 
     * @param booksProjectFeatures 非遗项目特色
     * @return 结果
     */
    @Override
    public int insertBooksProjectFeatures(BooksProjectFeatures booksProjectFeatures)
    {
        return booksProjectFeaturesMapper.insertBooksProjectFeatures(booksProjectFeatures);
    }

    /**
     * 修改非遗项目特色
     * 
     * @param booksProjectFeatures 非遗项目特色
     * @return 结果
     */
    @Override
    public int updateBooksProjectFeatures(BooksProjectFeatures booksProjectFeatures)
    {
        return booksProjectFeaturesMapper.updateBooksProjectFeatures(booksProjectFeatures);
    }

    /**
     * 批量删除非遗项目特色
     * 
     * @param projectFeaturesIds 需要删除的非遗项目特色主键
     * @return 结果
     */
    @Override
    public int deleteBooksProjectFeaturesByProjectFeaturesIds(Long[] projectFeaturesIds)
    {
        return booksProjectFeaturesMapper.deleteBooksProjectFeaturesByProjectFeaturesIds(projectFeaturesIds);
    }

    /**
     * 删除非遗项目特色信息
     * 
     * @param projectFeaturesId 非遗项目特色主键
     * @return 结果
     */
    @Override
    public int deleteBooksProjectFeaturesByProjectFeaturesId(Long projectFeaturesId)
    {
        return booksProjectFeaturesMapper.deleteBooksProjectFeaturesByProjectFeaturesId(projectFeaturesId);
    }
}
